# coding: utf-8
import pytest
from constants import apb
from setting import (
    LoginMobile,
    LoginPassword,
)
from pages.dougong.f_login import DouPageLogin


@pytest.fixture(scope="session", autouse=True)
def fix_session():
    print("----- start -----")
    DouPageLogin().login(LoginMobile, LoginPassword)
    
    yield
    apb.delete(key="", is_delete_all=True)
    
    print("----- end -----")
